<template>
  <biz-project-form
    v-if="formConfig.formKey"
    :form-config="formConfig"
    @submit="submitForm"
  />
</template>

<script>
import BizProjectForm from '@/formgen/src/components/BizProjectForm'
import mixin from "../TduckFormMixin"
export default {
    components: {
      BizProjectForm
    },
    mixins: [mixin],
    data() {
        return {
          formConfig: {
            formKey: '',
            preview: true,
            showBtns: true
          }
        }
    },
    created() {
      this.formConfig.formKey = this.$route.query.key
     },
    methods: {
      submitForm(){
        this.msgError('预览无法提交数据')
      }
    }
}
</script>

